package appEnums;

import bean.EnumObject;
import java.util.ArrayList;
import java.util.List;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author HoangNam
 */
public enum Style {

    Shirt("Áo"),
    Trousers("Quần");
    private final String text;

    Style(String text) {
        this.text = text;
    }

    public String text() {
        return text;
    }

    /**
     *
     * @return
     */
    public static List<EnumObject> getEnumList() {
        List<EnumObject> list = new ArrayList<>();
        for (Style s : Style.values()) {
            list.add(new EnumObject(s.text, s.ordinal()));
        }
        return list;
    }
}
